<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
     <link rel="stylesheet" href="${pageContext.request.contextPath}/Waiter/css/pintuer.css">
	 <link rel="stylesheet" href="${pageContext.request.contextPath}/Waiter/css/admin.css">
	 <link href="${pageContext.request.contextPath}/sys/style/css/toastr.css" rel="stylesheet" />
  
	 <script src="${pageContext.request.contextPath}/Waiter/js/jquery.js"></script>
	 <script src="${pageContext.request.contextPath}/Waiter/js/pintuer.js"></script>
	 <script type="text/javascript" src="${pageContext.request.contextPath}/sys/style/js/toastr.min.js"></script>    
</head>
<body>
  <div class="panel admin-panel">
    <div class="panel-head"><strong class="icon-reorder"> 内容列表</strong> <a href="" style="float:right; display:none;">添加字段</a></div>
    <div class="padding border-bottom">
      <ul class="search" style="padding-left:10px;">
        <li> <a class="button border-main icon-plus-square-o" href="/OrderSystem/SelectAction.action?a=bb"> 订餐内容</a> </li>
        
       
        <if condition="$iscid eq 1"> 
        
          <li>
          	<form action="${pageContext.request.contextPath}/MenuAction_query" method="post">
					<td width="500">						
						<label>
							<input class="input" style="width:150px; line-height:17px;display:inline-block" placeholder="请输入搜索关键字" name="Key" type="text" size="15" value="">
								
							<select name="Type" id="select" class="input" style="width:150px; line-height:20px;" >
								<option value="m_name">
									菜名
								</option>								
							</select>
							<input class="button border-main icon-search"  type="submit" name="button" id="button" value="搜索">
						</label>
					</td>
			</form>
          	
          
          </li>
        </if>
        <li>
          <!-- 显示可用餐桌编号    -->
          <select  id="sele_d_id"  name="type" style="width:150px; line-height:17px;font-size:15px;" class="input">				 		 
  			</select>
  			
  			<!-- 显示已选餐桌编号    -->
  			 <select  id="sele_n_id"  name="type" style="width:150px; line-height:15px;font-size:15px;float:left;" class="input">				 		 
  			</select>
  			
      </ul>
    </div>
    <table class="table table-hover text-center">
      <tr>
        <th width="100" style="text-align:left; padding-left:20px;">ID</th>
       
        <th>图片</th>
        <th>名称</th>
        <th width="10%">描述</th>
        <th>类型</th>
        <th width="10%">单价</th>
        <th width="310">操作</th>
      </tr>
      <volist name="list" id="vo">
      <tbody>
              <s:iterator value="list" var="Menu">
        <tr>      
	          <td name="m_id"> <s:property value="#Menu.m_id"/></td>
	          <td width="10%">	<s:if test="#Menu.m_url_defal!=''">
	              			<img src="/OrderSystem/img/<s:property value="#Menu.m_url_defal"/>" height="80px" width="100px" id="imgg"/>
	              	</s:if>
	              	<s:else>
	              			<img src="/OrderSystem/img/UnUpLoadImg.png" height="80px" width="100px" id="imgg"/>
	              	</s:else>
	              	</td>
	          <td>   <s:property value="#Menu.m_name"/> </td>
	          <td><s:property value="#Menu.m_describe"/></td>
	          <td><s:property value="#Menu.m_type"/></td>
	          <td>  <s:property value="#Menu.m_price"/></td>
	          <td>
	          	<div class="padding border-bottom" > 
	          		
	          		<a class="class="button border-main icon-plus-square-o" style="cursor:pointer;" onclick="a(<s:property value="#Menu.m_id"/>)">
	          			<span class="icon-plus-square-o"></span> 添加
	          		</a>  
	          	</div>
	         </td>
        </tr>
	   	<tr>
	             	<td>&nbsp;&nbsp;</td>
	           		<td>&nbsp;&nbsp;</td>
	           		<td>&nbsp;&nbsp;</td>
	           		<td>&nbsp;&nbsp;</td>
	           		<td>&nbsp;&nbsp;</td>
	           		<td>&nbsp;&nbsp;</td>
	           		<td>&nbsp;&nbsp;</td>
	     </tr>
       
       
         </s:iterator>
    </tbody>        
     </tr>
      <tr>
     
      <tr>
        <td colspan="8">
        <%-- <s:property value="#Menu.m_pagenow"/>  --%>
        	<div class="pagelist" id="FenYe"> 
        		<a href="${pageContext.request.contextPath}/MenuAction_search.action?page=<s:property value="page-1"/>">上一页</a>
        		<a href="${pageContext.request.contextPath}/MenuAction_search.action?page=<s:property value="page+1"/>">下一页</a>
        	</div>
        </td>
      </tr>
    </table>
  </div>

<script src="/OrderSystem/Waiter/js/waiter.js"></script>
	 
</body>
</html>